<?php 
include('conexion.php');

$resultado=mysql_query("SELECT * FROM opciones WHERE id=1", $con);
$opcion=mysql_fetch_array($resultado);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="es">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title><?php echo $opcion['nombresitio'] ?> | Panel Administrativo</title>
<script language="JavaScript" type="text/javascript" src="funciones_javascript.js"></script>
<script language="javascript" type="text/javascript" src="tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
	tinyMCE.init({
		mode : "textareas",
		theme : "advanced",
		theme_advanced_toolbar_location : "top",
		theme_advanced_toolbar_align : "left",
		theme_advanced_statusbar_location : "bottom",
		theme_advanced_resizing : true,
		theme_advanced_resize_horizontal : false,
		theme_advanced_buttons1 : "bold,italic,strikethrough,separator,formatselect,separator,bullist,numlist,outdent,indent,separator,justifyleft,justifycenter,justifyright,separator,link,unlink,image,separator,code",	
		theme_advanced_buttons2 : "",
		theme_advanced_buttons3 : "",
		content_css : "tiny_mce/estilo_editor.css",
		//entities : "38,amp,60,lt,62,gt"
	});

	function fileBrowserCallBack(field_name, url, type, win) {
		// This is where you insert your custom filebrowser logic
		alert("Filebrowser callback: field_name: " + field_name + ", url: " + url + ", type: " + type);

		// Insert new URL, this would normaly be done in a popup
		win.document.forms[0].elements[field_name].value = "someurl.htm";
	}
</script>

<link rel="stylesheet" type="text/css" href="estructura.css" />
<link rel="stylesheet" type="text/css" href="tablas.css" />

</head>
<body>
<div id="cabecera"></div>
<div id="menu">
<?php
	include('menu.tpl');
?>
</div>
<?php 
	require('seleccionar.php');
?>
<div id="pie">
<?php
	include('pie.tpl');
?>
</div>
</body>
</html>
